import request from '@/utils/request'

const moduleApi = '/operation/statistics/admin'

/**社群数据明细列表 */
export function getCommunityDataListApi(params) {
  return request({
    url: moduleApi + `/associationDataInfo`,
    method: 'get',
    params
  })
}

/**社群数据明细列表数据导出 */
export function postCommunityDataListApi(data) {
  return request({
    url: moduleApi + `/associationDataInfo/derive`,
    method: 'post',
    data
  })
}

/**点位社群列表 */
export function getPointCommunitiesListApi(params) {
  return request({
    url: moduleApi + `/positionAssociation`,
    method: 'get',
    params
  })
}

/**交易数据列表 */
export function getTransactionDataListApi(params) {
  return request({
    url: moduleApi + `/dealDataList`,
    method: 'get',
    params
  })
}

/**交易数据-总览 */
export function postTransactionDataTotalApi(data) {
  return request({
    url: moduleApi + `/dealDataTotal`,
    method: 'post',
    data
  })
}
